package org.simp.core.body;


/**
 * @author zhuhaitao at 2014-5-21
 *
 * 消息体
 */
public interface SimpBody {

	/**
	 * 消息体编码
	 * @return
	 * @author zhuhaitao at 2014-5-21
	 */
	public byte[] encode();
	
	/**
	 * 消息体解码
	 * @param data
	 * @author zhuhaitao at 2014-5-21
	 */
	public void decode(byte[] data);
}
